import Vue from 'vue'
window.m_popQueue = new Map()
Vue.mixin({
  created () {
    // 用于组件销毁时取消ajax请求和loading
    this.$m_destroyed = []
    this.$m_popQueue = []
  },
  destroyed () {
    // 用于组件销毁时取消ajax请求和loading
    this.$m_destroyed.forEach(x => x())
  }
})
